package org.example.iris.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.iris.entity.UploadLog;

import java.util.List;

@Mapper
public interface UploadLogMapper {


    @Insert("insert into upload_log(file_id, uploader_id, upload_time) values(#{fileId}, #{uploaderId}, #{uploadTime})")
    void insertUploadLog(UploadLog uploadLog);

    @Select("select * from upload_log")
    List<UploadLog> selectAll();
}
